/*
路由器对象模块
 */
import Vue from 'vue'
import VueRouter from 'vue-router'

import Index from '../pages/index'
import Main from '../pages/main'
import Details from '../pages/details'
import Cart from '../pages/cart'
import Pay from '../pages/pay'
import Activity from '../pages/activity'
import Personal from '../pages/personal'
import Allorder from '../pages/allorder'




// 声明使用插件
Vue.use(VueRouter);

export default new VueRouter({

  routes: [

    { path: '/', component: Index },
    { path: '/pages/main', component: Main },
    { path: '/pages/details/main', component: Details },
    { path: '/pages/cart/main', component: Cart },
    { path: '/pages/pay/main', component: Pay },
    { path: '/pages/activity/main', component: Activity },
    { path: '/pages/personal/main', component: Personal },
    { path: '/pages/allorder/main', component: Allorder },

  ]

})
